﻿<h2>Sample Razor Script</h2>
<!-- Single statement blocks  -->
@{ var total = 7; }
@{ var myMessage = "Hello World"; }
 
<!-- Inline expressions -->
<p>The value of your account is: @total </p>
<p>The value of myMessage is: @myMessage</p>
     
<!-- Multi-statement block -->
@{ 
    var greeting = "Welcome to our site!"; 
    var weekDay = DateTime.Now.DayOfWeek; 
    var greetingMessage = greeting + " Today is: " + weekDay; 
} 
<p>The greeting is: @greetingMessage</p>